package com.lkx.monitorconsole.controller;


import com.lkx.monitorconsole.utils.R;
import com.lkx.monitorconsole.vo.RecordCountVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/index")
public class IndexController {

    @GetMapping("/index")
    public R<RecordCountVO> index(){
        RecordCountVO vo = new RecordCountVO();
        vo.setMinCount(100L);
        vo.setHourCount(1000L);
        vo.setDayCount(10000L);
        vo.setMonCount(300000L);
        return R.ok(vo);
    }
}
